package cn.sciento.starter.social.wechat.enterprise.connection;

import cn.sciento.starter.social.core.common.connect.SocialServiceProvider;
import cn.sciento.starter.social.core.common.connect.SocialTemplate;
import cn.sciento.starter.social.core.provider.Provider;
import cn.sciento.starter.social.wechat.enterprise.api.DefaultWechatEnterpriseApi;
import cn.sciento.starter.social.wechat.enterprise.api.WechatEnterpriseApi;

public class WechatEnterpriseServiceProvider extends SocialServiceProvider {
  private Provider provider;
  
  public WechatEnterpriseServiceProvider(Provider provider, SocialTemplate template) {
    super(provider, template);
    this.provider = provider;
  }
  
  public WechatEnterpriseApi getSocialApi(String accessToken) {
    return (WechatEnterpriseApi)new DefaultWechatEnterpriseApi(accessToken, this.provider);
  }
}
